package com.janko.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author nyk
 * @Date 2021/6/28 10:38
 * @Version 1.0
 * @Desc 读取配置文件类
 */
@ConfigurationProperties(prefix = "demo")
public class DemoProperties {
    private String varKey;
    private String varValue;
    private Integer varIsDelete;

    public String getVarKey() {
        return varKey;
    }

    public void setVarKey(String varKey) {
        this.varKey = varKey;
    }

    public String getVarValue() {
        return varValue;
    }

    public void setVarValue(String varValue) {
        this.varValue = varValue;
    }

    public Integer getVarIsDelete() {
        return varIsDelete;
    }

    public void setVarIsDelete(Integer varIsDelete) {
        this.varIsDelete = varIsDelete;
    }

    @Override
    public String toString() {
        return "DemoProperties{" +
                "varKey='" + varKey + '\'' +
                ", varValue='" + varValue + '\'' +
                ", varIsDelete=" + varIsDelete +
                '}';
    }
}
